<template>
  <el-card shadow="never">
    <CardTitle title="等级信息" />
    <el-row>
      <el-col :span="24" class="mt5">
        <el-descriptions :column="3">
          <el-descriptions-item>
            <template #label>
              <descriptions-item-label label="等级编码" />
            </template>
            {{ data.no }}
          </el-descriptions-item>
          <el-descriptions-item>
            <template #label>
              <descriptions-item-label label="等级名称" />
            </template>
            {{ data.name }}
          </el-descriptions-item>
          <el-descriptions-item>
            <template #label>
              <descriptions-item-label label="变更时间" />
            </template>
            {{ formatDate(data.modifyTime) }}
          </el-descriptions-item>
        </el-descriptions>
      </el-col>
    </el-row>
  </el-card>
</template>
<script setup lang="ts">
import { formatDate } from '@/utils/formatTime'
import * as MemberLevelApi from '@/api/blind/memberLevel'
import { DescriptionsItemLabel } from '@/components/Descriptions/index'

const { data } = defineProps<{ data: MemberLevelApi.MemberLevelVO }>()
</script>
<style scoped lang="scss">
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
</style>
